#!/bin/bash

cat <<EOF >> /etc/sysctl.conf
net.core.somaxconn=551
vm.overcommit_memory=1
vm.max_map_count=262144
EOF

touch /etc/profile.d/xiamu.sh
cat <<EOF > /etc/profile.d/docker_xiamu.sh
export VNET_NAME=net_xiamu
EOF

yum install net-tools -y
echo '初始化已完成，即将重新启动！'
sleep 3
reboot
